import request from '../utils/request'

// 统计数据相关API
export const statisticsApi = {
  // 获取数据概览
  getOverview: () => {
    return request.get('/statistics/overview')
  },

  // 获取会员统计
  getMemberStats: (params?: any) => {
    return request.get('/statistics/members', { params })
  },

  // 获取课程统计
  getCourseStats: (params?: any) => {
    return request.get('/statistics/courses', { params })
  },

  // 获取教练统计
  getCoachStats: (params?: any) => {
    return request.get('/statistics/coaches', { params })
  },

  // 获取营收统计
  getRevenueStats: (params?: any) => {
    return request.get('/statistics/revenue', { params })
  },

  // 获取预约统计
  getBookingStats: (params?: any) => {
    return request.get('/statistics/bookings', { params })
  }
}